package model
{
	[Bindable]
	public class ModelLocator
	{
		
		public var selectPlace:String;
		public var selectColor:String;
		public var selectID:String;
		public var selectSize:String;
		
		public var selectInfo:Object;
		
		public var imgConfig:Object;
		public var swfConfig:Object;
		
		public var root:String;
		public var uploadImg:String;
		public var uploadSwf:String;
		public var goodType:String;
		public var swfType:String;
		public var goodServer:String;
		public var swfServer:String;
		public var submitUrl:String;
		public var submitImg:String;
		
		public var faceNum:int;
		public var faceInfo:Array;
		
		public var fontList:Array;
		
		public var isFirstScale:Boolean;
		
		
		
		private static var instance:ModelLocator;  
  
        public static function getInstance():ModelLocator  
        {  
            if(instance==null)  instance = new ModelLocator();  
            return instance;  
        }  
  																											
        public function ModelLocator()  
        {  
           if(instance!=null) throw new Error("Error: Singletons can only be instantiated via getInstance() method!");  
            ModelLocator.instance = this;  
        }  
		/* 
		public function setUrl(xml:XML):void{
			this.btnUrl = xml.navigation.@url;
			this.tabUrl = xml.tab.@url;
			this.detailUrl = xml.detail.@url;
			this.submit = xml.submit.@url;
			this.submitPreview = xml.submitPreview.@url
			this.submitInfo = xml.submitInfo.@url;
			this.root = xml.root.@url;
		} 
		*/
		
		
	}
}